package org.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.domain.ResponseResult;
import org.example.domain.dto.MenuLIstDto;
import org.example.domain.entity.Menu;

import java.util.List;

public interface MenuService extends IService<Menu> {

    List<String> selectPermsByUserId(Integer userId);

    List<Menu> selectRouterMenuTreeByUserId(Integer userId);

    ResponseResult menuTree();

    List<Menu> selectMenuByRoleId(Integer id);

    ResponseResult getMenuLIst(MenuLIstDto menuLIstDto);

    List<Menu> treeList();

    ResponseResult addMenu(Menu menu);

    ResponseResult updateMenu(Menu menu);
}
